package com.hzb.shop.user.service;

import com.hzb.shop.user.entiy.ShopUser;
import com.hzb.shop.user.mapper.ShopUserMapper;
import com.hzb.shop.user.rpc.ShopUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/10.
 */
@Service("shopUserService")
public class ShopUserServiceImpl implements ShopUserService {
    @Autowired
    private ShopUserMapper shopUserMapper;
    public int add(ShopUser shopUser) {
        return shopUserMapper.add(shopUser);
    }

    public int update(ShopUser shopUser) {
        return shopUserMapper.update(shopUser);
    }

    public ShopUser get(ShopUser shopUser) {
        return shopUserMapper.get(shopUser);
    }

    public List<ShopUser> findList(ShopUser shopUser) {
        return shopUserMapper.findList(shopUser);
    }

    public int delete(ShopUser shopUser) {
        return shopUserMapper.delete(shopUser);
    }
}
